Integrand size = 36, antiderivative size = 107 \[ \int \cos ^2(e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)} \, dx=\frac {8 c \cos (e+f x) (a+a \sin (e+f x))^{1+m}}{a f \left (15+16 m+4 m^2\right ) \sqrt {c-c \sin (e+f x)}}+\frac {2 \cos (e+f x) (a+a \sin (e+f x))^{1+m} \sqrt {c-c \sin (e+f x)}}{a f (5+2 m)} \]
8*c*cos(f*x+e)*(a+a*sin(f*x+e))^(1+m)/a/f/(4*m^2+16*m+15)/(c-c*sin(f*x+e)) ^(1/2)+2*cos(f*x+e)*(a+a*sin(f*x+e))^(1+m)*(c-c*sin(f*x+e))^(1/2)/a/f/(5+2 *m)
Time = 1.55 (sec) , antiderivative size = 111, normalized size of antiderivative = 1.04 \[ \int \cos ^2(e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)} \, dx=-\frac {2 \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 (a (1+\sin (e+f x)))^m \sqrt {c-c \sin (e+f x)} (-7-2 m+(3+2 m) \sin (e+f x))}{f (3+2 m) (5+2 m) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )} \]
(-2*(Cos[(e + f*x)/2] + Sin[(e + f*x)/2])^3*(a*(1 + Sin[e + f*x]))^m*Sqrt[ c - c*Sin[e + f*x]]*(-7 - 2*m + (3 + 2*m)*Sin[e + f*x]))/(f*(3 + 2*m)*(5 + 2*m)*(Cos[(e + f*x)/2] - Sin[(e + f*x)/2]))
Time = 0.62 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.06, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3042, 3320, 3042, 3219, 3042, 3217}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cos ^2(e+f x) \sqrt {c-c \sin (e+f x)} (a \sin (e+f x)+a)^m \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \cos (e+f x)^2 \sqrt {c-c \sin (e+f x)} (a \sin (e+f x)+a)^mdx\) |
\(\Big \downarrow \) 3320 |
\(\displaystyle \frac {\int (\sin (e+f x) a+a)^{m+1} (c-c \sin (e+f x))^{3/2}dx}{a c}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int (\sin (e+f x) a+a)^{m+1} (c-c \sin (e+f x))^{3/2}dx}{a c}\) |
\(\Big \downarrow \) 3219 |
\(\displaystyle \frac {\frac {4 c \int (\sin (e+f x) a+a)^{m+1} \sqrt {c-c \sin (e+f x)}dx}{2 m+5}+\frac {2 c \cos (e+f x) \sqrt {c-c \sin (e+f x)} (a \sin (e+f x)+a)^{m+1}}{f (2 m+5)}}{a c}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {4 c \int (\sin (e+f x) a+a)^{m+1} \sqrt {c-c \sin (e+f x)}dx}{2 m+5}+\frac {2 c \cos (e+f x) \sqrt {c-c \sin (e+f x)} (a \sin (e+f x)+a)^{m+1}}{f (2 m+5)}}{a c}\) |
\(\Big \downarrow \) 3217 |
\(\displaystyle \frac {\frac {8 c^2 \cos (e+f x) (a \sin (e+f x)+a)^{m+1}}{f (2 m+3) (2 m+5) \sqrt {c-c \sin (e+f x)}}+\frac {2 c \cos (e+f x) \sqrt {c-c \sin (e+f x)} (a \sin (e+f x)+a)^{m+1}}{f (2 m+5)}}{a c}\) |
((8*c^2*Cos[e + f*x]*(a + a*Sin[e + f*x])^(1 + m))/(f*(3 + 2*m)*(5 + 2*m)* Sqrt[c - c*Sin[e + f*x]]) + (2*c*Cos[e + f*x]*(a + a*Sin[e + f*x])^(1 + m) *Sqrt[c - c*Sin[e + f*x]])/(f*(5 + 2*m)))/(a*c)
3.1.75.3.1 Defintions of rubi rules used
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f _.)*(x_)])^(n_), x_Symbol] :> Simp[-2*b*Cos[e + f*x]*((c + d*Sin[e + f*x])^ n/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]])), x] /; FreeQ[{a, b, c, d, e, f, n }, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + ( f_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[e + f*x]*(a + b*Sin[e + f*x])^ (m - 1)*((c + d*Sin[e + f*x])^n/(f*(m + n))), x] + Simp[a*((2*m - 1)/(m + n )) Int[(a + b*Sin[e + f*x])^(m - 1)*(c + d*Sin[e + f*x])^n, x], x] /; Fre eQ[{a, b, c, d, e, f, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && I GtQ[m - 1/2, 0] && !LtQ[n, -1] && !(IGtQ[n - 1/2, 0] && LtQ[n, m]) && !( ILtQ[m + n, 0] && GtQ[2*m + n + 1, 0])
Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_ .)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Simp[1/(a^(p/ 2)*c^(p/2)) Int[(a + b*Sin[e + f*x])^(m + p/2)*(c + d*Sin[e + f*x])^(n + p/2), x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[p/2]
\[\int \left (\cos ^{2}\left (f x +e \right )\right ) \left (a +a \sin \left (f x +e \right )\right )^{m} \sqrt {c -c \sin \left (f x +e \right )}d x\]
Time = 0.30 (sec) , antiderivative size = 155, normalized size of antiderivative = 1.45 \[ \int \cos ^2(e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)} \, dx=\frac {2 \, {\left ({\left (2 \, m + 3\right )} \cos \left (f x + e\right )^{3} + {\left (2 \, m - 1\right )} \cos \left (f x + e\right )^{2} + {\left ({\left (2 \, m + 3\right )} \cos \left (f x + e\right )^{2} + 4 \, \cos \left (f x + e\right ) + 8\right )} \sin \left (f x + e\right ) + 4 \, \cos \left (f x + e\right ) + 8\right )} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{4 \, f m^{2} + 16 \, f m + {\left (4 \, f m^{2} + 16 \, f m + 15 \, f\right )} \cos \left (f x + e\right ) - {\left (4 \, f m^{2} + 16 \, f m + 15 \, f\right )} \sin \left (f x + e\right ) + 15 \, f} \]
2*((2*m + 3)*cos(f*x + e)^3 + (2*m - 1)*cos(f*x + e)^2 + ((2*m + 3)*cos(f* x + e)^2 + 4*cos(f*x + e) + 8)*sin(f*x + e) + 4*cos(f*x + e) + 8)*sqrt(-c* sin(f*x + e) + c)*(a*sin(f*x + e) + a)^m/(4*f*m^2 + 16*f*m + (4*f*m^2 + 16 *f*m + 15*f)*cos(f*x + e) - (4*f*m^2 + 16*f*m + 15*f)*sin(f*x + e) + 15*f)
\[ \int \cos ^2(e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)} \, dx=\int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{m} \sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )} \cos ^{2}{\left (e + f x \right )}\, dx \]
Leaf count of result is larger than twice the leaf count of optimal. 312 vs. \(2 (103) = 206\).
Time = 0.37 (sec) , antiderivative size = 312, normalized size of antiderivative = 2.92 \[ \int \cos ^2(e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)} \, dx=-\frac {2 \, {\left (a^{m} \sqrt {c} {\left (2 \, m + 7\right )} + \frac {a^{m} \sqrt {c} {\left (2 \, m + 15\right )} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {2 \, a^{m} \sqrt {c} {\left (2 \, m - 5\right )} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {2 \, a^{m} \sqrt {c} {\left (2 \, m - 5\right )} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {a^{m} \sqrt {c} {\left (2 \, m + 15\right )} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + \frac {a^{m} \sqrt {c} {\left (2 \, m + 7\right )} \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )} e^{\left (2 \, m \log \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + 1\right ) - m \log \left (\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )\right )}}{{\left (4 \, m^{2} + 16 \, m + \frac {2 \, {\left (4 \, m^{2} + 16 \, m + 15\right )} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {{\left (4 \, m^{2} + 16 \, m + 15\right )} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + 15\right )} f \sqrt {\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1}} \]
-2*(a^m*sqrt(c)*(2*m + 7) + a^m*sqrt(c)*(2*m + 15)*sin(f*x + e)/(cos(f*x + e) + 1) - 2*a^m*sqrt(c)*(2*m - 5)*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 - 2 *a^m*sqrt(c)*(2*m - 5)*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + a^m*sqrt(c)*( 2*m + 15)*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + a^m*sqrt(c)*(2*m + 7)*sin( f*x + e)^5/(cos(f*x + e) + 1)^5)*e^(2*m*log(sin(f*x + e)/(cos(f*x + e) + 1 ) + 1) - m*log(sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 1))/((4*m^2 + 16*m + 2*(4*m^2 + 16*m + 15)*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + (4*m^2 + 16*m + 15)*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 15)*f*sqrt(sin(f*x + e)^2/(cos (f*x + e) + 1)^2 + 1))
\[ \int \cos ^2(e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)} \, dx=\int { \sqrt {-c \sin \left (f x + e\right ) + c} {\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cos \left (f x + e\right )^{2} \,d x } \]
Time = 2.02 (sec) , antiderivative size = 104, normalized size of antiderivative = 0.97 \[ \int \cos ^2(e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)} \, dx=-\frac {{\left (a\,\left (\sin \left (e+f\,x\right )+1\right )\right )}^m\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (25\,\cos \left (e+f\,x\right )+3\,\cos \left (3\,e+3\,f\,x\right )+8\,\sin \left (2\,e+2\,f\,x\right )+6\,m\,\cos \left (e+f\,x\right )+2\,m\,\cos \left (3\,e+3\,f\,x\right )\right )}{2\,f\,\left (\sin \left (e+f\,x\right )-1\right )\,\left (4\,m^2+16\,m+15\right )} \]